package com.ih.service.impl;

import com.github.pagehelper.PageInfo;
import com.ih.mapper.WaterDetailsMapper;
import com.ih.pojo.WaterDetails;
import com.ih.service.WaterDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public  class WaterDetailsServiceImpl implements WaterDetailsService {
    @Autowired
    private WaterDetailsMapper waterDetailsMapper;

    @Override
    public PageInfo<WaterDetails> queryWaterDetails(WaterDetails waterDetails,Integer pageNum,Integer pageSize) {
        List<WaterDetails> list = waterDetailsMapper.queryWaterDetails(waterDetails);

        return new PageInfo<>(list);
    }
}
